<div class="nav_menu">
    <nav>
        <div class="nav toggle">
            <a id="menu_toggle"><i class="fa fa-bars"></i></a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <li>
                <a href="javascript;" class="user-profile dropdown-toggle" data-toggle="dropdown"
                   aria-expanded="false">
                    <img src="/static/images/img.jpg" alt="...">{{ request.user.username }}
                    <span class="fa fa-angle-down"></span>
                </a>
                <ul class="dropdown-menu dropdown-usermenu pull-right">
                    {% if request.user.is_staff %}
                        <li><a href="/admin/">管理后台</a></li>
                    {% endif %}
                    <li><a href="/logout"><i class="fa fa-sign-out pull-right"></i>登出</a></li>
                </ul>
            </li>
            <li role="presentation" class="dropdown">
                <a href="javascript:" class="dropdown-toggle info-number" data-toggle="dropdown"
                   aria-expanded="false">
                    <i class="fa fa-envelope-o"></i>
                    {% if false %}
                        <span class="badge bg-green">0</span>
                    {% endif %}
                </a>
                <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
                    <li>
                        <div class="text-center">
                            <a>
                                <strong>测 试</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </div>
                    </li>
                </ul>
            </li>
        </ul>
    </nav>
</div>